SG Window | Window Object |
Style Property |
See Also Properties Methods Events Constants Error Codes |
Manipulates window style flags.
object.Style
The object is expression that evaluates to the Window object.
Window styles are boolean constants which define the appearance and behavior of windows. SG Window defines style constants in the WinStyle enumeration.
Folowing VB example displays captions of all top level minimized windows:
Dim w As New SGWindow.Window Dim child As SGWindow.Window w.AttachDesktop For Each child In w.Children If (child.Style And ws_MINIMIZE) <> 0 Then MsgBox child.Text End If Next
This is same example but modified for VBScript:
Const ws_MINIMIZE = &H20000000& Dim w, child Set w = CreateObject("SGWindow.Window") w.AttachDesktop For Each child In w.Children If (child.Style And ws_MINIMIZE) <> 0 Then MsgBox child.Text End If Next